                        <div class="">
                        <h1>اعدادات شروط العقد</h1>
                        <hr />
                        <div class="bookings-edit-container">
                        <p class="small text-right"> الشروط </p>
                        <div class="bookings-edit-row">
					      <?php if(isset($conditions)&& !empty($conditions)) { ?> 
                        <p class="parag" style="height:500px;" name="conditions"> <?php echo $conditions[0]['condition_txt']; ?> </p>
						<div class="edit" style="display:none;">
						<form action=""  method="POST" >
						<h1>ادخال الشروط</h1>
                        <hr />
						<textarea class="cond" style="height:400px; " name="conditions"> <?php echo $conditions[0]['condition_txt']; ?> </textarea>
						 <input type="submit" name="sub" value="تعديل"/>
						 </form>
						 </div>
						<div   class="button"><a style="color:blue;" href="#">تعديل الشروط</a></div>
						<?php } ?>
						<form action=""  method="POST" >
						 <?php if( empty($conditions)) { ?> 
						<div class="parag" >
						<h1>ادخال الشروط</h1>
                        <hr />
						<textarea  style="height:400px;" name="conditions">  </textarea>
						 <input  type="submit" name="sub_save" value="حفظ"/>
						 </form>
                         </div>
                        <?php } ?>
                        </div>
                      </div>  
